/*
 * @Description: 登录管理数据规则
 * @Author: HuiSir<273250950@qq.com>
 * @Date: 2021-09-02 15:39:43
 * @LastEditTime: 2025-08-14 11:06:21
 */
import { useProjectConfig, rules2MockMethods } from "./_helpers";
import { adminInfo } from "./admin";
const project = useProjectConfig();
const Prefix = "/login/";

// 登录
const submit = {
  [project.responseFields.data]: adminInfo,
  [project.responseFields.message]: "登录成功",
};

// 验证码
const getVerifyCode = {
  [project.responseFields.data]: {
    verifyId: "@id",
    verifyImage:
      "",
  },
  [project.responseFields.message]: "成功",
};

const Rules: Record<string, unknown> = {
  submit,
  getVerifyCode,
};

export default rules2MockMethods(Rules, Prefix);
